<div class="displaysingle">
	<?php
		// Get and display name and description
		$name = $show->getName();
		$description = $show->getDescription();
	?>
	<h2><?php echo $name ?></h2>
	<p><?php echo $description ?></p>
	<div class="castandcrew">
		<ul>
		<?php 
			// Display crewmembers - title and name. 
			foreach($crew as $crewmember) :
			$type = $crewmember->getTheType();
			$personID = $crewmember->getPersonID();
			$this->load->model('displayHandler');
			$person = $this->displayHandler->getPersonByID($personID);
			$name = $person->getFirstname() . " " . $person->getLastname();
			?> <li> <?php
			echo $type . " ";
			echo anchor("displaySingle/Person/$personID", $name);
			?> </li> <?php
			endforeach;
		?>
		</ul>
		<ul>
		<?php 
			// Display castmembers and their characternames. 
			foreach($cast as $castmember) :
			$characterName = $castmember->getCharacterName();
			$personID = $castmember->getPersonID();
			$person = $this->displayHandler->getPersonByID($personID);
			$name = $person->getFirstname() . " " . $person->getLastname();
			?> <li> <?php
			echo anchor("displaySingle/Person/$personID", $name);
			echo "<p class='listextra'> as " . $characterName . "</p>";
			?> </li> <?php
			endforeach;
		?>	
		</ul>
	</div>
</div>